html {
    font-size: 37.5px; /* 基准值：375px/10 = 37.5px */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: 0.373rem;
}

.login_box{
  width: 100%;
  height: 100vh;  
}

.login-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
    padding: 0.533rem;
}

.login-header {
  width: 100%;
  height: 5.867rem;  /* 220px，稍微减小头部高度 */
  position: relative;
  overflow: hidden;
}

.login-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-content {
  flex: 1;
  padding: 1.067rem 0.8rem 0;  /* 40px 30px 0，减小顶部内边距 */
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-top-left-radius: 0.8rem;  /* 30px */
  border-top-right-radius: 0.8rem;  /* 30px */
  margin-top: -0.8rem; /* 30px */
  position: relative;
}

.login-title {
    font-size: 0.64rem;
    color: #333;
    text-align: center;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.error-message {
    color: #f44336;
    font-size: 0.373rem;
    margin-bottom: 0.4rem;
    text-align: center;
}

.login-form {
    width: 100%;
    background: white;
    border-radius: 0.32rem;
    padding: 0.8rem;
    box-shadow: 0 0.213rem 0.64rem rgba(0, 0, 0, 0.1);
}

.form-item {
    margin-bottom: 0.533rem;
}

.form-item input {
    width: 100%;
    height: 1.28rem;
    border: 0.027rem solid #e0e0e0;
    border-radius: 0.213rem;
    padding: 0 0.4rem;
    font-size: 0.427rem;
    color: #333;
    transition: border-color 0.3s;
}

.form-item input:focus {
    border-color: #f48fb1;
    outline: none;
}

.verify-code-container {
    display: flex;
    gap: 0.267rem;
}

.verify-code-container input {
    flex: 1;
}

.send-code-btn {
    width: 3.2rem;
    height: 1.28rem;
    border: none;
    border-radius: 0.213rem;
    background: #f48fb1;
    color: white;
    font-size: 0.373rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.send-code-btn:hover {
    background: #f06292;
}

.send-code-btn:disabled {
    background: #e0e0e0;
    cursor: not-allowed;
}

.login-btn {
    width: 100%;
    height: 1.28rem;
    border: none;
    border-radius: 0.213rem;
    background: #f48fb1;
    color: white;
    font-size: 0.427rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 0.533rem;
}

.login-btn:hover {
    background: #f06292;
}

.login-btn:disabled {
    background: #e0e0e0;
    cursor: not-allowed;
}

.password-login {
    text-align: center;
    color: #f48fb1;
    font-size: 0.373rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
}

.password-login:hover {
    color: #f06292;
}

.test-api-btn {
    text-align: center;
    color: #4caf50;
    font-size: 0.373rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
    padding: 0.267rem;
    border: 1px dashed #4caf50;
    border-radius: 0.213rem;
}

.test-api-btn:hover {
    background-color: #e8f5e9;
}

.divider {
    position: relative;
    text-align: center;
    margin-bottom: 0.533rem;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 0.027rem;
    background: #e0e0e0;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: white;
    padding: 0 0.267rem;
    color: #999;
    font-size: 0.373rem;
}

.other-login-icons {
    display: flex;
    justify-content: center;
    gap: 0.533rem;
    margin-bottom: 0.8rem;
}

.third-party-icon {
    width: 1.067rem;
    height: 1.067rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
    background: #f5f5f5;
}

.third-party-icon:hover {
    transform: scale(1.1);
}

.third-party-icon img {
    width: 0.64rem;
    height: 0.64rem;
}

.agreement {
    text-align: center;
    color: #666;
    font-size: 0.373rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
   
}

.checkbox-label input[type="checkbox"] {
    width: 0.427rem;
    height: 0.427rem;
    margin: 0;
}

.privacy-link {
    color: #f48fb1;
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

.agreement-container {
  margin-bottom: 20px;
}

.agreement input[type="checkbox"] {
  margin-right: 0.213rem;  /* 8px */
  width: 0.373rem;  /* 14px */
  height: 0.373rem;  /* 14px */
  accent-color: #FF8FAB;
}

.agreement input[type="checkbox"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.agreement a {
  color: #FF8FAB;
  text-decoration: none;
}

.other-login {
  margin-top: 1.6rem;  /* 60px，减小第三方登录上方间距 */
}

.other-login-text {
  text-align: center;
  color: #999;
  font-size: 0.32rem;  /* 12px */
  margin-bottom: 0.667rem;  /* 25px，减小分隔线下方间距 */
  position: relative;
}

.other-login-text::before,
.other-login-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 2.133rem;  /* 80px */
  height: 1px;
  background: #EEEEEE;
}

.other-login-text::before {
  left: 50%;
  margin-left: 0.8rem;  /* 30px */
}

.other-login-text::after {
  right: 50%;
  margin-right: 0.8rem;  /* 30px */
}

@media screen and (max-width: 320px) {
    html {
        font-size: 32px;
    }
}

@media screen and (min-width: 375px) {
    html {
        font-size: 37.5px;
    }
}

@media screen and (min-width: 414px) {
    html {
        font-size: 41.4px;
    }
}

@media screen and (min-width: 768px) {
    html {
        font-size: 76.8px;
    }
    
    .login-form {
        max-width: 10.667rem;
    }
} 